home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: debugging a child process with gdb?
- Date: 18 Apr 1996 00:01:25 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4l4pc5INNci6@keats.ugrad.cs.ubc.ca>
- References: <4l4htk$dus@news.tamu.edu>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4l4htk$dus@news.tamu.edu>, Tom Brown <tbrown> wrote:
- >hi folks,
- >
- >does anyone know how to set a break point on a
- >process that gets exec'ed from a parent process
- >with gdb?
-
- Haha, you can't do that! The child is an autonomous process with its own trace
- flag in the context information. And that flag is likely not turned on.
- In any case, gdb can't trace two processes simultaneously, as far as I know.
-
- Your best shot is probably to open up a separate terminal emulator window, find
- out the PID of the child, and attach a new gdb session to the running child.
- Then trace both processes independently.
-